import { View } from '@tarojs/components';
import Taro from '@tarojs/taro';
import { NavBar } from '@nutui/nutui-react-taro';
import { ArrowLeft } from '@nutui/icons-react-taro';

const OrderDetail = () => {
	let params: any = Taro.getCurrentInstance().router?.params;
	const { orderNum } = params;
	const toBack = () => {
		Taro.navigateBack();
	};
	return (
		<View>
			<NavBar
				back={
					<>
						<ArrowLeft size={14} />
						返回
					</>
				}
				onBackClick={toBack}
			>
				<span onClick={() => Taro.showToast({ title: '标题' })}>订单详情</span>
			</NavBar>
			<View>订单编号：{orderNum}</View>
		</View>
	);
};

export default OrderDetail;
